package lgs.hm.xml;

import java.text.DateFormat;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

public class Cate {
	//没有get set方法怎么把属性注入进去，通过构造器注入
	private String type;
	
	private Double price;
	
	private Date date;
	
	@Autowired
	private DateFormat dFormat;
	
//	public Cate() {}

	public Cate(String type, Double price) {
		this.type = type;
		this.price = price;
	}

	@Override
	public String toString() {
		return "Cate [type=" + type + ", price=" + price + "]";
	}
	
	

}
